﻿using System;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;

namespace Model.Platform.PhysicalData
{
    [Table("OperationsLog")]
    public class OperationsLog
    {
        [Key]
        [DatabaseGenerated(DatabaseGeneratedOption.None)]
        public Guid Id { get; set; }
        public Guid UserIdentityId { get; set; }

        /// <summary>
        ///     行为:行为类型+行为细节+发生时间
        /// </summary>
        public Int32 BehaviorTypes { get; set; }

        public String BehaviorDetails { get; set; }
        public DateTime BehaviorOccurrenceTime { get; set; }

        /// <summary>
        ///     结果：结果类型+结果细节+发生时间
        /// </summary>
        public Int32 ConsequenceTypes { get; set; }

        public String ConsequenceDetails { get; set; }
        public DateTime ConsequenceOccurrenceTime { get; set; }

        /// <summary>
        ///     关联事件：事件ID
        /// </summary>
        public Guid OtherEventId { get; set; }
    }
}